package com.cn.demo4.service.impl;

import com.cn.demo4.entity.OnlineEntity;
import com.cn.demo4.mapper.OnlineMapper;
import com.cn.demo4.service.IOnlineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OnlineServiceImpl implements IOnlineService {
    @Autowired
    private OnlineMapper onlineMapper;
    @Override
    public List<OnlineEntity> findAll() {
        return onlineMapper.findAll();
    }

    @Override
    public List<OnlineEntity> getOnlineModelListForHome() {
        return onlineMapper.getOnlineModelListForHome();
    }
}
